package com.tianheng.modbus.exception;

/**************************************************
 * copyright (c) 2020, peng.cao@tianheng-uestc.com All Rights Reserved.
 * created by peng.cao
 * date:       2020/7/9 0009
 * since:      1.0.0.1
 * description:
 *
 **************************************************/
public class EnumParseException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    public EnumParseException(Class clas, Integer id) {
        super(clas.getName() + " id:" + id + " 未知枚举项，数据库字段值错误，请联系管理员！");
    }

    public EnumParseException(Class clas, String code) {
        super(clas.getName() + " code:" + code + " 未知枚举项，数据库字段值错误，请联系管理员！");
    }
}
